// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import App from './App'
// 导入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
import { VueJsonp } from 'vue-jsonp'
import md5 from 'js-md5'
Vue.prototype.$md5 = md5
Vue.use(VueJsonp)
Vue.prototype.$axios = axios // 配置全局可用
axios.defaults.baseURL = '/api'
Vue.config.productionTip = false
Vue.use(ElementUI)
/* eslint-disable no-new */
Vue.prototype.$Map = window.TMap
Vue.prototype.$Location = new window.qq.maps.Geolocation('OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77', '腾讯地图模板-博客展示')
new Vue({
  el: '#app',
  router: router,
  render: h => h(App)
  // ,
  // components: { App },
  // template: '<App/>'
}).$mount('#app')
